/**
 * @Description:
 * @author zhaokai
 * @date 2020/1/7
 */
let inquirer = require('inquirer');

function exePrompt() {
    inquirer.prompt([
        {
            type: 'checkbox',
            name: 'test',
            choices: ['test', 'test2']
        },
        {
            type: 'list',
            name: 'list',
            choices: ['list1', 'list2']
        },
        {
            type: 'input',
            name: 'input',
            message: "Sender's email address - "
        }
    ]).then(answer => {
        console.log(answer)
    });
}

exePrompt();